<template>
    <view class="text">
        <Navigation backType="back" title="详情" background="#fff" />
        <view class="ph-32 pv-32 fs-32 text-color4" v-html='detail'>
			
			</view>
    </view>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import { agreement} from '@/services/api/index';
const detail = ref<any>();
onLoad((options: any) => {
    getDetail(options.type);
});
async function getDetail(type:number) {
	const { data } = await agreement({ type });
	detail.value = data.content?data.content:'';
}	
	
</script>
<style lang="scss" scoped></style>
